﻿using System;
using System.Collections.Generic;

namespace Yapdb.Domain.Data
{
    public class Game
    {
        /// <summary>
        ///  Database identifier
        /// </summary>
        public long Id { get; private set; }

        /// <summary>
        ///  List of players in the game
        /// </summary>
        public ICollection<GamePlayer> Players { get; private set; }

        /// <summary>
        ///  All actions made by all players
        /// </summary>
        public ICollection<Action> Actions { get; private set; }

        /// <summary>
        ///  Game bigblind
        /// </summary>
        public decimal BigBlind { get; set; }

        /// <summary>
        ///  Game small blind
        /// </summary>
        public decimal SmallBlind { get; set; }

        /// <summary>
        ///  Game ante
        /// </summary>
        public decimal Ante { get; set; }

        /// <summary>
        ///  Next filled seat is always the bigblind
        /// </summary>
        public int ButtonSeat { get; set; }

        /// <summary>
        ///  Game Identifer defined by client
        /// </summary>
        public string Identifier { get; set; }

        /// <summary>
        ///  Name of the client
        /// </summary>
        public PokerClient Client { get; set; }

        /// <summary>
        ///  Moment the game started
        /// </summary>
        public DateTime StartTime { get; set; }
    }
}
